/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.DTO;

import Server.BUS.StringUlti;

/**
 *
 * @author Trung
 */
public abstract class Query {
    protected String keyWord;
    protected String queryString;
    
    public Query()
    {
        keyWord = "";
        queryString = "";
    }
    
    public Query(String _keyWord, String _queryString)
    {
        keyWord = _keyWord;
        queryString = _queryString;
    }

    /**
     * @return the keyWord
     */
    public String getKeyWord() {
        return keyWord;
    }

    /**
     * @param keyWord the keyWord to set
     */
    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    /**
     * @return the queryString
     */
    public String getQueryString() {
        return queryString;
    }

    /**
     * @param queryString the queryString to set
     */
    public void setQueryString(String queryString) {
        this.queryString = queryString;
        this.queryString = StringUlti.formatString(this.queryString);
    }

}
